Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
使用
MinerU
解析PDF文档到Markdown。(支持版本-1.0.1)由于MinerU环境与gpt_academic冲突,需要事先创建好名字为
MinerU
的Conda环境。安装命令如下:
conda create -n MinerU python=3.10 conda activate MinerU pip install -U 'magic-pdf[full]' --extra-index-url https://wheels.myhloli.com
默认使用CPU,使用GPU加速至少需要8GB显存,需要修改
~/magic-pdf.json
中的device-mode
为cuda
。如果Conda环境名字不是
MinerU
,可以在高级参数输入区输入Conda环境名称。